{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
~}}

<Clients::RunningTotal
  @isSecretsSyncActivated={{this.flags.secretsSyncIsActivated}}
  @byMonthActivityData={{this.byMonthActivityData}}
  @isHistoricalMonth={{and (not this.isCurrentMonth) (not this.isDateRange)}}
  @isCurrentMonth={{this.isCurrentMonth}}
  @runningTotals={{this.totalUsageCounts}}
  @upgradeData={{this.upgradesDuringActivity}}
  @responseTimestamp={{@activity.responseTimestamp}}
  @mountPath={{@mountPath}}
/>
{{#if this.hasAttributionData}}
  <Clients::Attribution
    @isSecretsSyncActivated={{this.flags.secretsSyncIsActivated}}
    @totalUsageCounts={{this.totalUsageCounts}}
    @newUsageCounts={{this.newClientCounts}}
    @totalClientAttribution={{this.totalClientAttribution}}
    @newClientAttribution={{this.newClientAttribution}}
    @selectedNamespace={{@namespace}}
    @startTimestamp={{this.startTimeISO}}
    @endTimestamp={{this.endTimeISO}}
    @responseTimestamp={{@activity.responseTimestamp}}
    @isHistoricalMonth={{and (not this.isCurrentMonth) (not this.isDateRange)}}
    @upgradesDuringActivity={{this.upgradesDuringActivity}}
  />
{{/if}}